package interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * Methoddeclaration of clientproxy.
 * Declares methods for server to communicate with clients.
 *
 * @author Dominik Korittki
 * @author Steffen Grushka
 * @version 0.1
 */
public interface ClientProxy extends Remote {
	
	/**
	 * called by server when a message is spreaded. Displays the content on a client message display
	 * @param username of user who wrote the message
	 * @param message the actual message
	 * @throws RemoteException
	 */
	public void receiveMessage (String username, String message) throws RemoteException;
}
